﻿@model ORM.Areas.Admin.ViewModels.ManageCategories.InsertDeviceCategoryViewModel
@Html.ValidationSummary(true, ValidationMessages.Summary)
<div class="content-box">
    <div class="content-box-header">
        <h3>
            Device Category information</h3>
    </div>
    <div class="content-box-content">
        @using (Html.BeginForm())
        {
            @Html.HiddenFor(m => m.Device.Id)
            <div class="input">
                <p class="required">
                    @Html.LabelFor(m => m.Device.Name)
                    @Html.TextBoxFor(m => m.Device.Name, new { @class = "text-input small-input" })
                    @Html.ValidationMessageFor(m => m.Device.Name)
                </p>
                <p>
                    @Html.LabelFor(m => m.Device.Description)
                    @Html.TextBoxFor(m => m.Device.Description, new { @class = "text-input small-input" })
                    @Html.ValidationMessageFor(m => m.Device.Description)
                </p>               
                <p class="buttons">
                    @Html.Partial("_SaveButton")
                    @Html.Partial("_CancelButton", new ORM.Models.ActionInfo("Cancel", "ManageDeviceCategories"))
                </p>
            </div>
        }
    </div>
</div>
